package com.xxjqr.rbac.entity.pojo;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author 丁昌江
 * @since 2021-02-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TbDept extends Model<TbDept> {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 部门名称
     */
    private String name;

    /**
     * 部门负责人
     */
    private String principal;

    /**
     * 联系电话
     */
    private String principalPhone;

    /**
     * 负责人邮箱
     */
    private String email;

    /**
     * 上级部门
     */
    private Long parentId;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDelete;



    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
